<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2.11</title>
</head>

<body>
    <script>
        //传统方式用\n进行分段
            var message = "听党指挥" + "\n" + "能打胜仗" + "\n" + "作风优良";
            //es6方式
            let message2 = `听党指挥
        能打胜仗
        作风优良`;
            console.log(message);
            console.log(message2);
    </script>
</body>

</html>